<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8" buffer="128kb"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的积分</title>
<script type="text/javascript">
function gotoPage(pageOffset, pageSize) {
	var form = document.getElementsByTagName("form")[1];
	form.elements["pager.offset"].value = pageOffset;
	form.elements["pageSize"].value = pageSize;
	form.submit();
}
</script>
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
        <script language="JavaScript" src="${ctx}/js/jquery.js"></script>
		<script language="JavaScript" src="${ctx}/js/filter.js"></script>
		<script language="JavaScript" src="${ctx}/js/json2.js"></script>
</head>
<body>

<div class="bg">
		  <div class="bg_inside">
		<div class="head">
			<c:import url="/pages/safeai/jsp/shop/header.jsp"></c:import>
		</div>
<c:import url="/front/userinfo.do?method=myRayi"></c:import>

<div class="user_order_content">
<div  class="user_order_content_top"><img src="../images/user_order_content_top.jpg" /></div>
<div class="user_order_content_center">
<ul><li style=" background-image:url(../images/title_letter_icon.jpg); background-position:left center; background-repeat:no-repeat;padding:5px 0px 0px 15px;margin-bottom:5px;line-height:15px;color:#5a3e2e">我的积分</li><li>您帐户的全部积分是：<font class="orange">${member.point}</font> 分</li>

<logic:empty name="ShoppingRecord" property="records">
<li>您没有任何积分使用记录</li>
</logic:empty>
</ul>

<logic:notEmpty name="ShoppingRecord" property="records">
<form action="${ctx}/front/userinfo.do?method=queryMemberPoint" method="post" name="userInfoForm">				   
<ul>
<li style="color:#A6957C; background-color:#efefef"><span style="width:400px">发生原因</span><span>发生日期</span><span>积分增减</span></li>

<logic:iterate id="pointRecord" name="ShoppingRecord" property="records">
<bean:define id="addDate" name="pointRecord" property="addDate" />
<li><span style="width:400px">${pointRecord.content}</span><span><%=com.safeai.util.Util.formatDate(new java.util.Date((Long)addDate), "yy/MM/dd")%></span><span>${pointRecord.point}</span></li>
</logic:iterate>

<li style="float:right;text-align:right;padding-right:30px;margin-top:20px;width:400px"><%@ include file="/user/pageFront.jsp"%></li>
</logic:notEmpty>
<logic:present name="ShoppingRecord">
<li style="float:right;text-align:right;padding-right:30px;margin-top:10px;width:500px">截止 <bean:write name="orderDate" format="yyyy-MM-dd"/> 日，您共有 <font class="orange">${Page.totalSize}</font> 张订单使用积分，累计使用积分 <font class="orange">${sumCount }</font> 分</li>
</logic:present>
</ul>			   
 		   
</div>
<div  class="user_order_content_bottom"><img src="../images/user_order_content_bottom.jpg" /></div>
</div> 
</div>

<div style="margin-top:10px;*+margin-top:20px"><%@ include file="/user/commonProblem.jsp"%></div>
<div class="bottom">
	<%@ include file="/pages/safeai/jsp/shop/bottom.jsp"%>	
	<div class="clearAll"></div>
</div>

</body>
</html>
  